package com.zut.hospital.service.diagnose;

import com.zut.hospital.entity.diagnose.Record;

import java.util.List;
import java.util.Map;

/**
 * @author 侯捷
 * @package_name com.zut.hospital.service.diagnose
 * @date 2019/6/10 22:39
 * @description
 */
public interface RecordService  {
    //添加一条病历记录
    int insertOneRecord(Record record);
    //通过登录姓名查询权限和科室
    String getUserInfoByName(String name);
    //通过科室查询挂号单
    String getInfoBySession(Integer ofcId);
    //科室和状态查询1表示未就诊
    String getInfoBySession1(Integer ofcId,Integer status);
    //xingming
//    String getInfoBySession(Integer ofcId,String name);
    //通过登录姓名查询科室id
    int getOfcIdBySession(String name);
    //
    String layuiJsonParse(List<Map<String, String>> list, int size);
    //
    String pageResult(int id,int currPage, int pageSize);
    //
//    String pageResult(int id,int currPage, int pageSize,String name);
    String getConvenByOfcIdAndStatus(int ofcId,int Status);
    //通过id查找具体信息
    String getPatientById(int id);
    //根据id查询所有医生
    String getAllUserByOfcId(int id);
    //插入一条病历
    int insertOneInfo(Record record);
    //获取本科室所有挂号记录
//    String getAllConven(Integer ofcId);
    //通过id查找具体信息
   String getRecordByTimeAndId(String name);
   //查找所有信息
    String getAllRecord(String name);
   int getUserIdBySession(String name);
   //删除
    int deleteOne(Integer id);
}
